package Java.j1;

import java.util.Scanner;

public class AcWing_606 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble(), b = sc.nextDouble();
        System.out.printf("MEDIA = %.5f", (a * 3.5 + b * 7.5) / 11);
    }
}
